﻿// -----------------------------------------------------------------------
// <copyright file="UnitSummary.cs" company="DarkBone">
// DarkBone
// </copyright>
// -----------------------------------------------------------------------

namespace DarkBone.Engine.Collections
{
   /// <summary>
   /// Unit Summary
   /// </summary>
   public sealed class UnitSummary
   {

      /// <summary>
      /// Initializes a new instance of the <see cref="UnitSummary"/> class.
      /// </summary>
      /// <param name="modelNumber">The model number.</param>
      /// <param name="count">The count.</param>
      public UnitSummary(int modelNumber, int count)
      {
         this.ModelNumber = modelNumber;
         this.Count = count;
         this.Template = UnitTemplates.GetTemplate(this.ModelNumber);
      }

      /// <summary>
      /// Gets or sets ModelNumber.
      /// </summary>
      public int ModelNumber { get; set; }

      /// <summary>
      /// Gets or sets Count.
      /// </summary>
      public int Count { get; set; }

      /// <summary>
      /// Gets or sets the template.
      /// </summary>
      /// <value>
      /// The template.
      /// </value>
      public UnitTemplate.Template Template { get; set; }
   }
}
